<!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'loginHistory.label', default: 'LoginHistory')}" />
        <title>查看客户信息</title>
        <asset:stylesheet src="styles/css/analy.css" />
        <asset:javascript src="html2canvas/html2canvas.min.js" />
        <style>
            .sub_title{
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
            }
        </style>
    </head>
    <body>
        %{--header--}%
        <div class="small-header">
            <div class="hpanel">
                <div class="panel-body">
                    <div id="hbreadcrumb" class="pull-right">
                        <ol class="hbreadcrumb breadcrumb">
                            <li>CINDATA PLS</li>
                            <li class="active">
                                <span>查看客户信息</span>
                            </li>
                        </ol>
                    </div>

                    <h2 class="font-light m-b-xs">
                        查看客户信息
                    </h2>
                </div>
            </div>
        </div>
        %{--content--}%
        <div class="content animate-panel">
            <div class="row">
                <div class="hpanel hgreen">
                    <div class="panel-heading">
                        <div class="panel-tools">
                        </div>
                        查看客户信息
                    </div>

                    <div class="panel-body form-horizontal">
                      <div class="downloadContent">
                      <div class="form-group">
                        <label class="control-label">1.申请概况</label>
                        <label class="control-label" style="float:right;margin-right:20px">业务流水号：${contactSurveyReport?.serialNumber}</label>
                        <label class="control-label" style="float:right;margin-right:20px">录入日期：${contactSurveyReport?.createdDate}</label>
                      </div>
                      <div class="form-group">
                        <label class="control-label">（一） 借款人及配偶基本申请信息</label>
                      </div>
                      <g:each in="${contactSurveyReport?.contacts}" var="contact" status="i">
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">借款人${i+1}:</label>
                          <div class="col-md-3">
                            <label class="col-md-3 control-label">${contact?.fullName}</label>
                          </div>
                          <label class="col-md-2 control-label is-required">性别：</label>
                          <div class="col-md-1 control-label">
                            <g:radio name="${contact}.sex" value="男" checked="${contact?.sex == '男'}"/>男
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="${contact}.sex" value="女" checked="${contact?.sex == '女'}"/>女
                          </div>
                          <label class="col-md-1 control-label is-required">年龄：</label>
                          <div class="col-md-2">
                            <label class="col-md-2 control-label"><g:if test="${contact?.birthday}">${(new Date()).getYear() .minus(contact?.birthday?.getYear())}</g:if></label>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required"><g:select class="" name="identityType" id="identityType" from="${com.cindata.dictionary.ContactIdentityType.list()}" optionKey="id" optionValue="name" value="${contact?.identityType?.id}" noSelection="${['': '身份证']}"/></label>
                          <div class="col-md-3">
                            <label class="col-md-3 control-label">${contact?.idNumber}</label>
                          </div>
                          <label class="col-md-2 control-label is-required">户口性质：</label>
                          <g:each in="${com.cindata.dictionary.AccountNatureDict.list()}">
                            <div class="col-md-1 control-label">
                              <g:radio name="${contact}.accountNature" value="${it?.name}" checked="${contact?.accountNature?.id == it?.id}"/>${it?.name}
                            </div>
                          </g:each>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">移动电话：</label>
                          <div class="col-md-3">
                            <label class="col-md-3 control-label">${contact?.cellphone}</label>
                          </div>
                          <label class="col-md-2 control-label is-required">住宅电话：</label>
                          <div class="col-md-3">
                            <label class="col-md-3 control-label">${contact?.phone}</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">每月收入：</label>
                          <div class="col-md-3">
                            <label class="col-md-3 control-label">${contact?.monthlyIncome} 元</label>
                          </div>
                          <label class="col-md-2 control-label is-required">邮编：</label>
                          <div class="col-md-3">
                            <label class="col-md-3 control-label">${contact?.zipCode}</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">家庭通讯地址：</label>
                          <div class="col-md-8">
                            <label class="control-label">${contact?.address}</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">工作单位：</label>
                          <div class="col-md-8">
                            <label class="control-label">${contact?.workUnitName}</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">工作通讯地址：</label>
                          <div class="col-md-8">
                            <label class="control-label">${contact?.workUnitAddress}</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label">婚姻状况：</label>
                          <div class="col-md-1">
                            <label class="control-label"><g:select class="" name="maritalStatus" id="maritalStatus" from="${com.cindata.Contact.constrainedProperties.maritalStatus.inList}"  value="${contact?.maritalStatus}"/></label>
                          </div>
                          <label class="col-md-1 control-label is-required">配偶：</label>
                          <div class="col-md-1">
                            <label class="control-label">${contact?.spouseFullName}</label>
                          </div>
                          <label class="col-md-1 control-label is-required">移动电话：</label>
                          <div class="col-md-1">
                            <label class="control-label">${contact?.spouseCellphone}</label>
                          </div>
                          <label class="col-md-2 control-label is-required"><g:select class="" name="contactType" id="contactType" from="${com.cindata.dictionary.ContactIdentityType.list()}" optionKey="id" optionValue="name" value="${contact?.spouseIdentityType?.id}" noSelection="${['': '身份证']}"/></label>
                          <div class="col-md-3">
                            <label class="col-md-3 control-label">${contact?.spouseIdNumber}</label>
                          </div>
                        </div>
                        <div class="form-group"></div>
                        <div class="form-group"></div>
                      </g:each>

                      <div class="form-group">
                        <label class="control-label">2.客户资信状况</label>
                      </div>
                      <div class="form-group">
                        <label class="control-label">（一） 借款人、配偶及共同借款人的信用记录查询</label>
                      </div>
                      <g:each in="${contactSurveyReport?.contacts}" var="contact" status="i">
                        <div class="form-group">
                          <label class="col-md-2 control-label">项目/被查询人:</label>
                          <label class="col-md-3 control-label">借款人${i+1}</label>
                          <label class="col-md-5 control-label">配偶</label>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">征信逾期记录:</label>
                          <div class="col-md-4">
                            <g:each in="${com.cindata.ContactSurvey.constrainedProperties.creditOverdueRecord.inList}">
                              <div class="col-md-3 control-label">
                                <g:radio name="${contact}.creditOverdueRecord" value="${it}" checked="${contact?.creditOverdueRecord == it}"/>${it}
                              </div>
                            </g:each>
                        </div>
                        <div class="col-md-4 col-md-offset-1">
                          <g:each in="${com.cindata.ContactSurvey.constrainedProperties.spouseCreditOverdueRecord.inList}">
                            <div class="col-md-3 control-label">
                              <g:radio name="${contact}.spouseCreditOverdueRecord" value="${it}" checked="${contact?.spouseCreditOverdueRecord == it}"/>${it}
                            </div>
                          </g:each>
                      </div>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">征信主要违约记录:</label>
                          <div class="col-md-4">
                            <g:each in="${com.cindata.ContactSurvey.constrainedProperties.creditDefaultingRecord.inList}">
                              <div class="col-md-3 control-label">
                                <g:radio name="${contact}.creditDefaultingRecord" value="${it}" checked="${contact?.creditDefaultingRecord == it}"/>${it}
                              </div>
                            </g:each>

                        </div>
                        <div class="col-md-4 col-md-offset-1">
                          <g:each in="${com.cindata.ContactSurvey.constrainedProperties.spouseCreditDefaultingRecord.inList}">
                            <div class="col-md-3 control-label">
                              <g:radio name="${contact}.spouseCreditDefaultingRecord" value="${it}" checked="${contact?.spouseCreditDefaultingRecord == it}"/>${it}
                            </div>
                          </g:each>
                      </div>
                        </div>
                        <div class="form-group">
                          <label class="col-md-2 control-label is-required">近半年征信查询次数:</label>
                          <div class="col-md-4">
                            <g:each in="${com.cindata.ContactSurvey.constrainedProperties.creditSearchingTimesInHalfYear.inList}">
                              <div class="col-md-3 control-label">
                                <g:radio name="${contact}.creditSearchingTimesInHalfYear" value="${it}" checked="${contact?.creditSearchingTimesInHalfYear == it}"/>${it}
                              </div>
                            </g:each>
                        </div>
                        <div class="col-md-4 col-md-offset-1">
                          <g:each in="${com.cindata.ContactSurvey.constrainedProperties.spouseCreditSearchingTimesInHalfYear.inList}">
                            <div class="col-md-3 control-label">
                              <g:radio name="${contact}.spouseCreditSearchingTimesInHalfYear" value="${it}" checked="${contact?.spouseCreditSearchingTimesInHalfYear == it}"/>${it}
                            </div>
                          </g:each>
                      </div>
                        </div>
                        <div class="form-group"><g:if test="${i < 1}"><hr style="border:0.5px dashed"></g:if></div>

                      </g:each>

                      <div class="form-group">
                        <label class="control-label">（二） 借款人、配偶及共同借款人原有负债情况</label>
                      </div>
                      <div class="form-group">
                        <label class="control-label">金融机构原有贷款</label>
                      </div>
                      <g:each in="${contactSurveyReport?.contacts}" var="contact" status="i">
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">借款人${i+1}:</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">负债类型：</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">${contact?.debtType}</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">笔数：</label>
                          </div>
                          <div class="col-md-1 control-label">
                            <label class="control-label">${contact?.debtMount} 笔</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">结余金额：</label>
                          </div>
                          <div class="col-md-1 control-label">
                            <label class="control-label">${contact?.loansBalance} 元</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">月均还款额：</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">${contact?.repaymentMountPerMon} 元</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">备注：</label>
                          </div>
                          <div class="col-md-4 control-label">
                            <label class="control-label">${contact?.memo}</label>
                          </div>

                        </div>
                        <div class="form-group"></div>
                      </g:each>

                      <g:each in="${contactSurveyReport?.contacts}" var="contact" status="i">
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label">借款人${i+1}:</label>
                          </div>
                          <div class="col-md-8" style="padding-top: 8px;">
                            <label class="control-label" >信用卡透支金额 ${contact?.overdraftAmount} 元，为他人债务担保余额合计 ${contact?.guaranteeForOthersAmount} 元</label>
                          </div>
                        </div>
                        <div class="form-group"></div>
                      </g:each>

                      <div class="form-group">
                        <label class="control-label">（三） 家庭成员收入能力检查记录</label>
                      </div>

                      <g:each in="${contactSurveyReport?.contacts}" var="contact" status="i">
                        <div class="form-group">
                          <div class="col-md-1 control-label">
                            <label class="control-label">借款人${i+1}:</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label">（1）单位核查</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">单位名称：</label>
                          </div>
                          <div class="col-md-8"  style="padding-top: 8px;">
                            <label class="control-label">${contact?.workUnitName}</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">单位地址：</label>
                          </div>
                          <div class="col-md-8"  style="padding-top: 8px;">
                            <label class="control-label">${contact?.workUnitAddress}</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">单位性质：</label>
                          </div>
                          <div class="col-md-9 control-label">
                            <g:each in="${com.cindata.dictionary.OrganizationNatureDict.list()}">
                            <div class="col-md-2 control-label">
                              <g:radio name="${contact}.workUnitNature" value="${it?.name}" checked="${contact?.workUnitNature?.id == it?.id}"/>${it?.name}
                            </div>
                          </g:each>
                        </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">固定电话：</label>
                          </div>
                          <div class="col-md-3"  style="padding-top: 8px;">
                            <label class="control-label">${contact?.workUnitPhone}</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">号码验证渠道：</label>
                          </div>
                          <div class="col-md-3"  style="padding-top: 8px;">
                            <label class="control-label">${contact?.numberCheckChannel}</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">核查时间：</label>
                          </div>
                          <div class="col-md-3"  style="padding-top: 8px;">
                            <label class="control-label">${contact?.workUnitCheckDate}</label>
                          </div>

                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">核查提问：</label>
                          </div>
                          <div class="col-md-6 control-label">
                            <div class="col-md-2 control-label">
                              <g:radio name="${contact}.checkContent" value="是否本单位职工" checked="${contact?.checkContent == '是否本单位职工'}"/>是否本单位职工
                            </div>
                            <div class="col-md-3 control-label">
                              <g:radio name="${contact}.checkContent" value="职工个人情况是否吻合" checked="${contact?.checkContent == '职工个人情况是否吻合'}"/>职工个人情况是否吻合
                            </div>
                            <div class="col-md-4 control-label">
                              <g:radio name="${contact}.checkContent" value="员工缴存情况是否与系统对应" checked="${contact?.checkContent == '员工缴存情况是否与系统对应'}"/>员工缴存情况是否与系统对应
                            </div>

                        </div>

                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">接听人员：</label>
                          </div>
                          <div class="col-md-3"  style="padding-top: 8px;">
                            <label class="control-label">${contact?.checkReceiver}</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">身份：</label>
                          </div>
                          <div class="col-md-4 control-label">
                            <div class="col-md-3 control-label">
                              <g:radio value="人事/劳资" name="${contact}.checkReceiverIdentity" checked="${contact?.checkReceiverIdentity == '人事/劳资'}"/>人事/劳资
                            </div>
                            <div class="col-md-3 control-label">
                              <g:radio value="综合办公" name="${contact}.checkReceiverIdentity" checked="${contact?.checkReceiverIdentity == '综合办公'}"/>综合办公
                            </div>
                            <div class="col-md-3 control-label">
                              <g:radio value="其他" name="${contact}.checkReceiverIdentity" checked="${contact?.checkReceiverIdentity == '其他'}"/>其他
                            </div>

                        </div>

                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">单位人员答复情况：</label>
                          </div>
                          <div class="col-md-5 control-label">
                            <div class="col-md-3 control-label">
                              <g:radio value="核实无误" name="${contact}.answeredSituation" checked="${contact?.answeredSituation == '核实无误'}"/>核实无误
                            </div>
                            <div class="col-md-3 control-label">
                              <g:radio value="异常" name="${contact}.answeredSituation" checked="${contact?.answeredSituation == '异常'}"/>异常（请写明情况）
                            </div>
                            <div class="col-md-2">
                              <label class="control-label">${contact?.abnormalMeno}</label>
                            </div>
                          </div>

                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label">工作单位实地核实情况（可选填）：</label>
                          </div>
                          <div class="col-md-5"  style="padding-top: 8px;">
                              <label class="control-label">${contact?.actuallyCheckSituation}</label>
                          </div>

                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label">（2）公积金缴存情况</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">起始月份：</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">${contact?.fundDepositStartDate}</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">截止月份：</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">${contact?.fundDepositEndDate}</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">连续缴存期数：</label>
                          </div>
                          <div class="col-md-1 control-label">
                            <label class="control-label">${contact?.fundDepositDuration} 期</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">月缴存：</label>
                          </div>
                          <div class="col-md-1 control-label">
                            <label class="control-label">${contact?.fundDepositAmountPerMon} 元</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">缴存比例：</label>
                          </div>
                          <div class="col-md-1 control-label">
                            <label class="control-label">${contact?.fundDepositRatio} %</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">月缴存基数：</label>
                          </div>
                          <div class="col-md-1 control-label">
                            <label class="control-label">${contact?.fundDepositBaseAmount} 元</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">公积金开户行：</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">${contact?.fundOpenedBank}</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">公积金余额：</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">${contact?.fundBalance} 元</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <div class="col-md-2 control-label">
                            <label class="control-label is-required">公积金缴存账号：</label>
                          </div>
                          <div class="col-md-2 control-label">
                            <label class="control-label">${contact?.fundAccount}</label>
                          </div>
                        </div>
                        <div class="form-group"></div>
                      </g:each>
                      <div class="form-group">
                        <div class="col-md-3 control-label col-md-offset-1">
                          <label class="control-label">注:对外企、民企性质的单位职工，必须电话核实借款人的工作情况</label>
                        </div>
                      </div>
                      <g:each in="${contactSurveyReport?.contacts}" var="contact" status="i">
                      <div class="form-group">
                        <div class="col-md-3 control-label">
                          <label class="control-label"><g:if test="${i < 1}">根据上表核定：</g:if></label>
                          <label class="control-label is-required">认定借款人${i+1}月均总收入 ${contact?.monthlyTotalIncome} 元</label>
                        </div>
                      </div>
                      </g:each>
                      <div class="form-group">
                        <div class="col-md-3 control-label col-md-offset-1">
                          <label class="control-label">综上核定：</label>
                          <label class="control-label is-required">借款人、配偶及共同借款人合计税后收入月均 ${contactSurveyReport?.coOwnersMonTotalIncome} 元</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label">3.所购房产情况</label>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">交易房屋地址：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.sourceAddress}</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">建筑面积：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.sourceBuildArea} 平方米</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">抵押物所有人：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.houseOwner}</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">房屋楼龄：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.houseAge}年</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">房产交易价格：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.transactionPrice} 元</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">首付款：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.firstPayment} 元</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">首付比例：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.firstPaymentRatio} %</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">房屋坐向：</label>
                        </div>
                        <div class="col-md-8 control-label">
                          <div class="col-md-1 control-label">
                            <g:radio name="orientation" value="东北" checked="${contactSurveyReport?.orientation == '东北'}"/>东北
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="orientation" value="正东" checked="${contactSurveyReport?.orientation == '正东'}"/>正东
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="orientation" value="东南" checked="${contactSurveyReport?.orientation == '东南'}"/>东南
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="orientation" value="正南" checked="${contactSurveyReport?.orientation == '正南'}"/>正南
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="orientation" value="西南" checked="${contactSurveyReport?.orientation == '西南'}"/>西南
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="orientation" value="正西" checked="${contactSurveyReport?.orientation == '正西'}"/>正西
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="orientation" value="西北" checked="${contactSurveyReport?.orientation == '西北'}"/>西北
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="orientation" value="正北" checked="${contactSurveyReport?.orientation == '正北'}"/>正北
                          </div>

                      </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">评估价格：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.evaluateTotalPrice} 元</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">价格合理性判断：</label>
                        </div>
                        <div class="col-md-6 control-label">
                          <div class="col-md-2 control-label">
                            <g:radio name="isPriceReasonable" value="合理" checked="${contactSurveyReport?.isPriceReasonable == '合理'}"/>合理
                          </div>
                          <div class="col-md-2 control-label">
                            <g:radio name="isPriceReasonable" value="一般" checked="${contactSurveyReport?.isPriceReasonable == '一般'}"/>一般
                          </div>
                          <div class="col-md-2 control-label">
                            <g:radio name="isPriceReasonable" value="不合理" checked="${contactSurveyReport?.isPriceReasonable == '不合理'}"/>不合理
                          </div>

                      </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">房屋性质：</label>
                        </div>
                        <div class="col-md-9 control-label">
                          <div class="col-md-1 control-label">
                            <g:radio name="houseNature" value="商品房" checked="${contactSurveyReport?.houseNature == '商品房'}"/>商品房
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="houseNature" value="自建房" checked="${contactSurveyReport?.houseNature == '自建房'}"/>自建房
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="houseNature" value="集资房" checked="${contactSurveyReport?.houseNature == '集资房'}"/>集资房
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="houseNature" value="经济适应房" checked="${contactSurveyReport?.houseNature == '经济适应房'}"/>经济适应房
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="houseNature" value="限价房" checked="${contactSurveyReport?.houseNature == '限价房'}"/>限价房
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="houseNature" value="其他" checked="${contactSurveyReport?.houseNature == '其他'}"/>其他
                          </div>

                      </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">房屋类型：</label>
                        </div>
                        <div class="col-md-9 control-label">
                          <div class="col-md-1 control-label">
                            <g:radio name="houseType" value="现楼" checked="${contactSurveyReport?.houseType == '现楼'}"/>现楼
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="houseType" value="期楼" checked="${contactSurveyReport?.houseType == '期楼'}"/>期楼
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="houseType" value="一手楼" checked="${contactSurveyReport?.houseType == '一手楼'}"/>一手楼
                          </div>
                          <div class="col-md-1 control-label">
                            <g:radio name="houseType" value="二手楼" checked="${contactSurveyReport?.houseType == '二手楼'}"/>二手楼
                          </div>
                      </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">房屋最终收款人：</label>
                        </div>
                        <div class="col-md-9 control-label">
                          <div class="col-md-2 control-label">
                            <g:radio name="finalPayeeOfLoans" value="售房人（或委托收款人）" checked="${contactSurveyReport?.finalPayeeOfLoans == '售房人（或委托收款人）'}"/>售房人（或委托收款人）
                          </div>
                          <div class="col-md-4 control-label">
                            <g:radio name="finalPayeeOfLoans" value="其他" checked="${contactSurveyReport?.finalPayeeOfLoans == '其他'}"/>其他（名称）：${contactSurveyReport?.ohterPayeeOfLoans}
                          </div>

                      </div>
                      </div>
                      <hr style="border:0.5px dashed">
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">1.抵押物价值评估日期：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.evaluateDate}</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">评估机构全称：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.evaluateAccount}</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">评估报告编号：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.evaluateReportNumber}</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-3 control-label col-md-offset-1">
                          <label class="control-label is-required">2.抵押物实地查看记录（若有。如与所有权证书所描述不一致，请详细说明):</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-3 control-label col-md-offset-1">
                          <label class="control-label">${contactSurveyReport?.houseRealSituationRecord}</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label">4.贷款风险评估</label>
                      </div>
                      <div class="form-group">
                        <div class="col-md-3 col-md-offset-1">
                          <label class="control-label is-required">本次贷款套数认定为第 ${contactSurveyReport?.loanNumber} 套，贷款金额 ${contactSurveyReport?.loansAmount} 元，期限 ${contactSurveyReport?.loansDuration} 年。</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-6 col-md-offset-1">
                          <label class="control-label is-required">借款人、配偶及共同借款人原有负债月均还款额，加上所购房屋月均支出，合计 ${contactSurveyReport?.commonExpendPrice} 元：月均还款总金额 ${contactSurveyReport?.commonTotalRepaymentPrice} 元，占月均总收入 ${contactSurveyReport?.expenditureIncomeRatio}%。</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 col-md-offset-1">
                          <label class="control-label is-required">房产抵押率为：${contactSurveyReport?.mortgageRate} %。</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 col-md-offset-1">
                          <label class="control-label is-required">贷款风险提示（选填）：</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-3 col-md-offset-1">
                          <label class="control-label">${contactSurveyReport?.mortgageWarningMemo}</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label">5.贷款调查意见</label>
                      </div>
                      <div class="form-group">
                        <div class="col-md-4 col-md-offset-1">
                          <label class="control-label">借款人借款行为真实，材料齐备、真实、有效。建议同意贷款，贷款条件如下表所列：</label>
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">金额：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.acceptableLoansAmount} 元</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">期数：</label>
                        </div>
                        <div class="col-md-2 control-label">
                          <label class="control-label">${contactSurveyReport?.loansDuration} 月</label>
                        </div>
                      </div>

                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">利率：</label>
                        </div>
                        <div class="col-md-9 control-label">
                          <div class="col-md-2 control-label">
                            <g:radio name="mortgageRatio" value="公积金贷款基准利率" checked="${contactSurveyReport?.mortgageRatio == '公积金贷款基准利率'}"/>公积金贷款基准利率
                          </div>
                          <div class="col-md-2 control-label">
                            <g:radio name="mortgageRatio" value="公积金贷款基准利率上浮10%" checked="${contactSurveyReport?.mortgageRatio == '公积金贷款基准利率上浮10%'}" value=""/>公积金贷款基准利率上浮10%
                          </div>
                      </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">还款方式：</label>
                        </div>
                        <div class="col-md-4 control-label">
                          <g:each in="${com.cindata.dictionary.RepaymentModeDict.list()}">
                          <div class="col-md-6 control-label">
                            <g:radio name="starRepaymentMode" value="${contactSurveyReport?.starRepaymentMode?.name}" checked="${contactSurveyReport?.starRepaymentMode?.id == it?.id}"/>${it?.name}
                          </div>
                        </g:each>

                      </div>
                      </div>
                      <div class="form-group">
                        <div class="col-md-2 control-label">
                          <label class="control-label is-required">放款方式：</label>
                        </div>
                        <div class="col-md-4 control-label">
                          <g:each in="${com.cindata.dictionary.LoanMethodDict.list()}">
                          <div class="col-md-6 control-label">
                            <g:radio name="loanMethod" value="${contactSurveyReport?.loanMethod?.name}" checked="${contactSurveyReport?.loanMethod?.id == it?.id}"/>${it?.name}
                          </div>
                        </g:each>
                      </div>
                      <div class="col-md-2 control-label">
                        <label class="control-label is-required">贷款资金最终收款人：</label>
                      </div>
                      <div class="col-md-2 control-label">
                        <label class="control-label">${contactSurveyReport?.finalPayeeOfLoans}</label>
                      </div>
                      </div>
                      <div class="form-group">
                      <div class="col-md-2 control-label">
                        <input type="checkbox">
                        <label class="control-label is-required">否决贷款申请。原因说明</label>
                      </div>
                      </div>
                      <div class="form-group">
                      <div class="col-md-4 control-label">
                        <label class="control-label">${contactSurveyReport?.mortgageRejectReason}</label>
                      </div>
                      </div>
                      <div class="form-group">
                      <div class="col-md-2 control-label">
                        <label class="control-label">经办人：${contactSurveyReport?.createBy?.fullName}</label>
                      </div>
                    </div>
                      <div class="form-group">
                      <div class="col-md-2 control-label">
                        <label class="control-label">经办日期： ${contactSurveyReport?.createdDate}</label>
                      </div>
                      </div>
                      <div class="form-group">
                      <div class="col-md-2 control-label">
                        <label class="control-label">复核人：${contactSurveyReport?.modifyBy?.fullName}</label>
                      </div>
                      </div>
                      <div class="form-group">
                      <div class="col-md-2 control-label">
                        <label class="control-label">经办日期： ${contactSurveyReport?.modifiedDate}</label>
                      </div>
                      </div>


                    </div>
                    <hr>
                    <div class="text-center">
                      <a class="btn btn-success" id="downloadBtn" href="" download="张xx.png">下载</a>
                      <g:link action="customerSurveyReport" class="btn btn-default">取消</g:link>
                    </div>
                  </div>


                </div>
            </div>
        </div>

        <script type="text/javascript">

     	 html2canvas(document.querySelector(".downloadContent")).then(canvas => {
     		 var url = canvas.toDataURL();

     		 $('#downloadBtn').attr('href',url);
     });

        </script>

    </body>
</html>
